//////////#include<iostream>
//////////#include<cmath>
//////////using namespace std;
//////////int main()
//////////{
//////////	int a[600];
//////////	int n;cin >> n;int flag = 1;
//////////	for (int i = 2; i <= n; i++)
//////////	{
//////////		flag = 1;
//////////		for (int j = 2; j <= sqrt(i); j++)
//////////		{
//////////			if (i % j == 0)
//////////			{
//////////				flag = 0;
//////////				break;
//////////			}
//////////		}
//////////		if (flag == 1) cout << i << endl;
//////////	}
//////////	return 0;
//////////}
////////#include<iostream>
////////using namespace std;
////////int main()
////////{
////////	int a[200];
////////	int n;cin >> n;
////////	for (int i = 1; i <= n; i++)
////////	{
////////		cin >> a[i];
////////	}
////////	int x;cin >> x;int i;
////////	for (i = 1; i <= n; i++)
////////	{
////////		if (x == a[i]) {
////////			cout << i - 1 << endl;
////////			break;
////////		}
////////	}
////////	if (i > n) cout << -1 << endl;
////////	return 0;
////////}
//////#include<iostream>
//////using namespace std;
//////int main()
//////{
//////	int a, b;cin >> a >> b;
//////	cout << b <<  " " << a;
//////	return 0;
//////}
////#include<iostream>
////#include<cctype>
////using namespace std;
////int main()
////{
////	char ch;cin >> ch;
////	if (isupper(ch))
////	{
////		cout << "upper letter No." << ch - 'A' + 1;
////	}
////	else if (islower(ch))
////	{
////		cout << "lower letter No." << ch - 'a' + 1;
////	}
////	else cout << "not letter";
////		return 0;
////}
//#include<iostream>
//using namespace std;
//int main()
//{
//	int n;cin >> n;
//	int t = n;
//	int a[4];int sum = 0;
//	for (int i = 1; i <= 3; i++)
//	{
//		a[i] = n % 10;
//		n /= 10;
//		sum += a[i] * a[i] * a[i];
//	}
//	if (sum == t) cout << "Yes" << endl;
//	else cout << "No" << endl;
//	return 0;
//}
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
	int sum = 1 ,n;cin >> n;
	cout << (1 + (pow(2, n - 1) - 1) / pow(2, n - 2)) * pow(2, n - 1);
	return 0;
}